<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var isThree = function(n) {
			    let count = 1;
			    for(let i = 2; i <= n; i++) {
			        if(n % i === 0) {
			           count += 1 
			        }
			    }
			    return count === 3
			};
			console.log(isThree(4));
		</script>
	</body>
</html>
